package org.jeecg.modules.util;

import org.jeecg.modules.system.service.ISysDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DictUtils {
    @Autowired
    private ISysDictService sysDictService;

    public String getDictItemName(String code, String value){
        return sysDictService.queryDictTextByKey(code, value);
    }
}